package com.example.flow.biz;

import com.example.flow.dao.model.FlowOrder;
import com.example.flow.request.CommonApproveRequest;
import com.example.flow.request.FlowStartRequest;
import com.example.flow.request.SubmitRequest;

/**
 * 流程操作
 *
 * @author tangaq
 * @date 2020/11/25
 */
public interface FlowBiz {

    FlowOrder startFlow(FlowStartRequest request);

    /**
     * 提交工单
     *
     * @param request
     * @return 工单编号 orderId
     */
    String submit(SubmitRequest request);

    boolean commonApproval(CommonApproveRequest request);
}
